package com.atguigu.educenter;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author ct_start
 * @create 2021 -08 -20
 **/
@ComponentScan({"com.atguigu"}) // 扫描公共包下的内容
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan("com.atguigu.educenter.mapper") // 把basemapper对象交给spring 容器进行管理,里面有接口的实现类 basemapper
public class UcenterApplication {
    public static void main(String[] args) {
        SpringApplication.run(UcenterApplication.class,args);
    }
}
